package org.jprobe.dummy;

import org.jprobe.JProbeException;

/**
 * a dummy final singleton pattern class which throws an exception when initialized
 * @author Hussain Al-Mutawa
 * @version 1.0
 * @since 1.0
 */
public final class DummyFinalSingletonException {
	/** singleton copy of the object **/
	private transient static DummyFinalSingletonException df;

	/** prevent initialization by empty constructor **/
	private DummyFinalSingletonException() throws JProbeException{
		throw new JProbeException("this class can not be initilized by any way");
	}
	/**
	 * gets a singleton copy of the DummyFinal object
	 * @return singleton copy
	 */
	public static DummyFinalSingletonException singleton() throws JProbeException{
		if(df==null){
			df = new DummyFinalSingletonException();
		}
		return df;
	}
}
